package com.ruoyi.cm.service;

import com.ruoyi.cm.domain.vo.CmBdQsCountVo;
import com.ruoyi.cm.domain.bo.CmBdQsCountBo;
import com.ruoyi.cm.domain.vo.ReportVo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * 标段期数计算Service接口
 *
 * @author zxs
 * @date 2024-09-30
 */
public interface ICmBdQsCountService {

    /**
     * 查询标段期数计算
     */
    CmBdQsCountVo queryById(Long id);

    /**
     * 查询标段期数计算列表
     */
    TableDataInfo<CmBdQsCountVo> queryPageList(CmBdQsCountBo bo, PageQuery pageQuery);

    /**
     * 查询标段期数计算列表
     */
    List<CmBdQsCountVo> queryList(CmBdQsCountBo bo);

    /**
     * 新增标段期数计算
     */
    Boolean insertByBo(CmBdQsCountBo bo);

    /**
     * 修改标段期数计算
     */
    Boolean updateByBo(CmBdQsCountBo bo);

    Boolean update(CmBdQsCountBo bo);

    Boolean updateBatch(CmBdQsCountBo bo);

    Boolean updateCountBatch(CmBdQsCountBo bo);

    /**
     * 校验并批量删除标段期数计算信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<ReportVo> getReportInfo(CmBdQsCountBo bo);

    List<CmBdQsCountVo> getInvoiceSummary(CmBdQsCountBo bo);

    Map<String,List<Map<String,String>>> getPaymentList(CmBdQsCountBo bo);
}
